//Gruntfile
module.exports = function(grunt) {

  //Initializing the configuration object
  grunt.initConfig({
    pkg: grunt.file.readJSON('package.json'),
    // Task configuration
    uglify: {
      //...
    },
    concat: {
      //...
    },
    qunit: {
      all: ['test/*/*.html']
    },
    jshint: {
      //...
    },
    watch: {
      //...
    },
    less: {
      development: {
        options: {
          compress: true, //minifying the result
        },
        files: {
          //compiling frontend.less into frontend.css
          "./public/stylesheets/bootstrap.min.css": "./bower_components/bootstrap/less/bootstrap.less",
          "./public/stylesheets/bootstrap-theme.min.css": "./bower_components/bootstrap/less/theme.less",
        }
      }
    },
  });

  // Plugin loading
  //grunt.loadNpmTasks('grunt-contrib-uglify');
  //grunt.loadNpmTasks('grunt-contrib-concat');
  //grunt.loadNpmTasks('grunt-contrib-jshint');
  //grunt.loadNpmTasks('grunt-contrib-watch');
  grunt.loadNpmTasks('grunt-contrib-qunit');
  grunt.loadNpmTasks('grunt-contrib-less');
  // Task definition
  //grunt.registerTask('default', ['uglify', 'concat', 'qunit', 'jshint']);
  grunt.registerTask('default', ['less']);
  grunt.registerTask('test', ['qunit']);
};